package top.xtcoder.jdcbase.base.entity.base;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.ColType;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Default;
import org.nutz.dao.entity.annotation.Index;
import org.nutz.dao.entity.annotation.Table;
import org.nutz.dao.entity.annotation.TableIndexes;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import top.xtcoder.jdcbase.base.entity.BaseEntity;

@Table("pb_nation_info")
@ApiModel("民族模块")
@Comment("民族模块")
@TableIndexes({
	@Index(fields= {"nationName"},unique=false)
})
public class NationInfo extends BaseEntity {
	
	private static final long serialVersionUID = 1L;
	
	@Column("nation_name")
	@ColDefine(type=ColType.TEXT)
	@Comment(value="民族名称")
	@ApiModelProperty(value="民族名称")
	private String nationName;
	
	@Column("sort")
	@ColDefine(type=ColType.INT,width=10)
	@Comment(value="排序")
	@ApiModelProperty(value="排序")
	@Default("0")
	private int sort;

	public String getNationName() {
		return nationName;
	}

	public void setNationName(String nationName) {
		this.nationName = nationName;
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

}